import {createApp} from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import {postRequest} from './utils/api'
import {putRequest} from './utils/api'
import {getRequest} from './utils/api'
import {deleteRequest} from './utils/api'

const app = createApp(App)

//插件形式使用请求
app.config.globalProperties.postRequest = postRequest
app.config.globalProperties.putRequest = putRequest
app.config.globalProperties.getRequest = getRequest
app.config.globalProperties.deleteRequest = deleteRequest

app.use(router)
app.use(ElementPlus)
app.mount('#app')
